/**
 * Copyright &copy; 2012-2014 <a href="https://github.cn.apestar">JeeSite</a> All rights reserved.
 */
package cn.apestar.modules.common.version.entity;

import cn.apestar.common.persistence.DataEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * 更新Entity
 *
 * @author LVH
 * @version 2016-02-21
 */
public class AppParam extends DataEntity<AppParam> {

    private static final long serialVersionUID = 1L;

    private String institutionId;        // 租户ID

    private String appVersion;        // APP版本号

    private String paramKey;        // 参数KEY

    private String androidVal;        // 安卓配置值

    private String iosVal;        // IOS配置值

    private Date createTime;        // 创建时间

    private Date updateTime;        // 更新时间

    private Date expirationTime;        // 过期时间

    private String isDeleted;        // 是否删除

    private String remark;        // 备注

    public AppParam() {
        super();
    }

    public AppParam(String id) {
        super(id);
    }

    public String getInstitutionId() {
        return institutionId;
    }

    public void setInstitutionId(String institutionId) {
        this.institutionId = institutionId;
    }

    @Length(min = 0, max = 50, message = "APP版本号长度必须介于 0 和 50 之间")
    public String getAppVersion() {
        return appVersion;
    }

    public void setAppVersion(String appVersion) {
        this.appVersion = appVersion;
    }

    public String getParamKey() {
        return paramKey;
    }

    public void setParamKey(String paramKey) {
        this.paramKey = paramKey;
    }

    public String getAndroidVal() {
        return androidVal;
    }

    public void setAndroidVal(String androidVal) {
        this.androidVal = androidVal;
    }

    public String getIosVal() {
        return iosVal;
    }

    public void setIosVal(String iosVal) {
        this.iosVal = iosVal;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public Date getExpirationTime() {
        return expirationTime;
    }

    public void setExpirationTime(Date expirationTime) {
        this.expirationTime = expirationTime;
    }

    @Length(min = 1, max = 4, message = "是否删除长度必须介于 1 和 4 之间")
    public String getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(String isDeleted) {
        this.isDeleted = isDeleted;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

}